Skip to content

Conversation

AugustinMauroy
Copy link
Member

Description

Add codemod for node:url legacy object to whatWG url

Related issue

close #92

@AugustinMauroy AugustinMauroy marked this pull request as ready for review August 12, 2025 18:58
@AugustinMauroy AugustinMauroy requested a review from a team August 12, 2025 18:58
@AugustinMauroy AugustinMauroy requested review from avivkeller, brunocroh and a team and removed request for brunocroh August 17, 2025 13:10
@@ -0,0 +1,18 @@
const url = require('node:url');

const myURL = url.parse('https://example.com/path?query=string#hash');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test for parsing a relative url, for example:

url.parse('/path?query=string#hash')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brainstorm: url.parse() -> new url
6 participants